package org.fone.utils.task;

import org.fone.utils.task.data.TableFieldType;
import org.fone.utils.task.data.TaskType;

public class Filter extends Task {

    int source_id;
    TableFieldType field_type;
    String field,operator,value;

    public Filter(TaskType type, int task_id, int source_id, TableFieldType field_type, String field, String operator, String value) {
        super(type, task_id);
        this.source_id = source_id;
        this.field_type = field_type;
        this.field = field;
        this.operator = operator;
        this.value = value;
    }
    public void setSource_id(int source_id) {
        this.source_id = source_id;
    }

    public void setField_type(TableFieldType field_type) {
        this.field_type = field_type;
    }

    public void setField(String field) {
        this.field = field;
    }

    public void setOperator(String operator) {
        this.operator = operator;
    }

    public void setValue(String value) {
        this.value = value;
    }

    @Override
    public String toString() {
        return "Filter{" +
                "source_id=" + source_id +
                ", field_type='" + field_type + '\'' +
                ", field='" + field + '\'' +
                ", operator='" + operator + '\'' +
                ", value='" + value + '\'' +
                ", type=" + type +
                ", task_id=" + task_id +
                '}';
    }

}
